package com.jyh.aop01.service.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/11 16:25
 */
@RestController
@RequestMapping("/aop")
public class HelloController {
    @GetMapping("getTest")
    public String getTest(){
        System.out.println("========getTest========");
        return "getTest";
    }

    @PostMapping("postTest")
    public String postTest(){
        System.out.println("========postTest========");
        return "postTest";
    }
}
